package com.ruslan.magaz.web.validation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy=AliveValidator.class)

public @interface Alive {
 String message() default "Dude, sry to say that, but you died long ago!";
 Class[] groups() default {};
 Class[] payload() default {};
}